﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Provider/PersonalAccident/PersonalAccident.master" AutoEventWireup="true" CodeFile="ProviderPolicyWriting.aspx.cs" Inherits="Provider_PersonalAccident_ProviderPolicyWriting" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="provider_inner">
        <h1>
            Add/Edit PA Insurance Policy Writing
            <asp:Label ID="lblProviderPAPolicyId" runat="server" Visible="false" Text="0"></asp:Label></h1>
        <fieldset>           
            <dl>
                <dt>
                    <label>
                        Policy Document Name</label></dt>
                <dd>
                    <asp:TextBox ID="txtPolicyDoc" runat="server"  Width="450px" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPolicyDoc" runat="server" ControlToValidate="txtPolicyDoc"
                        ErrorMessage="Enter policy name." Display="Dynamic" ValidationGroup="CarPolicy"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Policy Description</label></dt>
                <dd>
                    <asp:TextBox ID="txtPolicyDescription" runat="server" TextMode="MultiLine" Height="100px" Width="450px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPolicyDescription" runat="server" ControlToValidate="txtPolicyDescription"
                        ErrorMessage="Enter polcy description." Display="Dynamic" ValidationGroup="CarPolicy"></asp:RequiredFieldValidator>
               
                </dd>
            </dl>       
             <dl>
                <dt>
                    <label>
                        Attached File</label></dt>
                <dd>
                    <asp:HyperLink ID="lnkpolicydoc" runat="server"  Target="_blank" ></asp:HyperLink>
               
                </dd>
            </dl>      
             <dl>
                <dt>
                    <label>
                        Upload Policy (PDF only)</label></dt>
                <dd>
                     <div id="divFileName" style="display: none">
                    <asp:TextBox ID="txtPolicyFilePath" runat="server"></asp:TextBox></div>
                <input id="fleUpload" style="width: 350;" runat="server" type="file" />  <asp:RequiredFieldValidator ID="rfvfleUpload" runat="server" ControlToValidate="fleUpload"
                        ErrorMessage="Browse a file to upload." Display="Dynamic" ValidationGroup="CarPolicy"></asp:RequiredFieldValidator>
                </dd>
            </dl>         
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" 
                ImageUrl="~/Provider/images/buttons/back1.gif" onclick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" CssClass="float_btn" runat="server" 
                ImageUrl="~/Provider/images/buttons/submit1.gif" ValidationGroup="CarPolicy" 
                onclick="ibtSubmit_Click" />
            <asp:ImageButton ID="btnNew" CssClass="floatnext_btn" runat="server" 
                ImageUrl="~/Provider/images/buttons/new1.gif" onclick="btnNew_Click" />            
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>

